<?php
function trans($key, $vars = array()){
	return Lang::get($key, $vars);
}

function startsWith($haystack, $needle) {
	$length = strlen($needle);
	return (substr($haystack, 0, $length) === $needle);
}

function endsWith($haystack, $needle) {
	return substr($haystack, -strlen($needle))===$needle;
}

?>